DISCUSSION
The
ATSUGetFontIDs function obtains the IDs of all ATSUI-compatible fonts that are installed on the user's system. For a description of fonts that are not compatible with ATSUI, see the discussion for
ATSUFontCount. You should call
ATSUGetFontIDs to rebuild your font menu
when your application is brought to the foreground.
Before calling
ATSUGetFontIDs, call
ATSUFontCount to determine the number of ATSUI-compatible fonts installed on the user's system. You should then allocate enough memory to contain this number of fonts for the array passed back in the
oFontIDs parameter.